package cn.johnyu.account.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.management.ManagementFactory;

@RestController
public class AccountController {
    @GetMapping("/info")
    public String info(){
        String processInfo = ManagementFactory.getRuntimeMXBean().getName();
        String threadInfo = Thread.currentThread().getName();

        return "account: "+processInfo+":::"+threadInfo;
    }
}
